#pragma once

#include <Box2D/Box2D.h>

class ICharacter;
class IState;

class CFSMManager
{
public:
	void Init(ICharacter* owner);
	void Update();
	void ChangeState(IState* newState);
	//void ChangeGlobalState(IState* newGState);
	void RevertToPreviousState();

	b2Timer _beginstate;

private:
	IState* _currState;
	IState* _prevState;
	IState* _globalState;

	ICharacter* _owner;
};